﻿using System;
using System.Linq.Expressions;

namespace BusinessBingo.Model.Interfaces
{
    public interface IValidationState
    {
        void AddError<TCommand>(Expression<Func<TCommand, object>> property, ErrorTypes errorType);
        void AddError(string key, ErrorTypes errorType);
        bool ContainsKey<TCommand>(Expression<Func<TCommand, object>> property);
        bool ContainsKey(string key);
        bool IsValid { get; }
    }
}